package cn.wpk.tools;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTime {
    Date DataTime;

    public String getDataTime() {
        SimpleDateFormat bartDateFormat = new SimpleDateFormat
                ("yyyy-MM-dd HH-mm-ss");

        return bartDateFormat.format(DataTime);
    }

    public void setDataTime(Date dataTime) {
        DataTime = dataTime;
    }
}
